<?php
if(!defined('IN_MANU')){ die('[ERROR] You cannot load this page directly !!!'); }

// include BaseController class
include MANU_PATH . '/application/' . 'basecontroller.class.php';

// include the Registry class
include MANU_PATH . '/application/' . 'registry.class.php';

// include the Router class
include MANU_PATH . '/application/' . 'router.class.php';
// include the Template class
include MANU_PATH . '/application/' . 'template.class.php';


// auto load model classes
function __autoload($class_name) 
{
    $filename = strtolower($class_name) . '.class.php';
    $file = MANU_PATH . '/model/' . $filename;
    
    if ( file_exists($file) == false ){
        return false;							
    }
    include($file);
}

// init the Resitry
$manu = new Registry;

?>
